package com.cos.lession73_listcontainer.entity;


import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author cos
 * @since 2022-03-24
 */
public class Emp  {

    private static final long serialVersionUID = 1L;

    private Integer eno;
    private String ename;
    private String esex;
    private Double salary;
    private String pwd;
    @JSONField(format = "yyyy-MM-dd")
    private Date borndate;
    private Integer dno;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getEno() {
        return eno;
    }

    public void setEno(Integer eno) {
        this.eno = eno;
    }

    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public String getEsex() {
        return esex;
    }

    public void setEsex(String esex) {
        this.esex = esex;
    }

    public Double getSalary() {
        return salary;
    }

    public void setSalary(Double salary) {
        this.salary = salary;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public Date getBorndate() {
        return borndate;
    }

    public void setBorndate(Date borndate) {
        this.borndate = borndate;
    }

    public Integer getDno() {
        return dno;
    }

    public void setDno(Integer dno) {
        this.dno = dno;
    }

    public Emp(String ename, String esex) {
        this.ename = ename;
        this.esex = esex;
    }

    public Emp(Integer eno, String ename, String esex, Double salary, String pwd, Date borndate, Integer dno) {
        this.eno = eno;
        this.ename = ename;
        this.esex = esex;
        this.salary = salary;
        this.pwd = pwd;
        this.borndate = borndate;
        this.dno = dno;
    }

    public Emp() {
    }
}
